<template>
  <el-dialog
    :title="dialogTitle"
    :visible.sync="dialogVisible"
    width="30%"
    @close="dialogClose">
    <slot></slot>
    <span slot="footer">
      <el-button @click=" dialogVisible= false">取消</el-button>
      <el-button type="primary" @click="onSubmit">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  methods: {
    dialogClose () {

    },
    onSubmit () {

    }
  },
  props: {
    dialogTitle: String,
    dialogVisible: Boolean
  }
}
</script>

<style>

</style>
